package com.googlecode.maratische.google.dao;

import java.sql.SQLException;
import java.util.List;

import be.lechtitseb.google.reader.api.model.feed.FeedDescriptor;
import be.lechtitseb.google.reader.api.model.opml.Outline;

import com.googlecode.maratische.google.BaseException;
import com.googlecode.maratische.google.model.Command;
import com.googlecode.maratische.google.model.Feed;

public interface FeedDao extends BaseDao<Feed> {

	List<Feed> findByNameAndXMLUrl(String name, String xmlurl) throws SQLException, BaseException;
	List<Feed> findByXMLUrl(String xmlurl) throws SQLException, BaseException;
	List<Feed> findByParentId(Integer parentId) throws SQLException, BaseException;
	Feed findByFeedDescriptorId(String feedDescriptorId) throws SQLException, BaseException;
	List<Command> saveAndUpdateOutline(Outline outline, List<FeedDescriptor> feeds, Integer parentId);
}
